<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page session="true"%>
<%@page import="java.sql.ResultSet"%>
<!doctype html>
<%
                HttpSession sessionUser=request.getSession();
                String value = "";
                if(sessionUser.getAttribute("result") != null){
                    ResultSet res=(ResultSet)sessionUser.getAttribute("result");
                    value = res.getString(4);
                }
%>

<html>
    <head>
        <title></title>
        <!-- Styles-->
        <link rel="stylesheet" type="text/css" href="../styles/tickets.css" />
        <link href="../js/jquery/alerts/jquery.alerts.css" rel="stylesheet" type="text/css" />

        <!-- Javascript-->
        <script type="text/javascript" src="../js/ajax.js"></script>        
        <script type="text/javascript" src="../js/tickets.js"></script>        
        <script type="text/javascript" language="javascript" src="../js/login.js"></script>
        <script language="javascript" type="text/javascript" src="../js/jquery/calendar/jquery-1.4.2.js"></script>
        <script language="javascript" type="text/javascript" src="../js/jquery/calendar/jquery.ui.core.js"></script>
        <script language="javascript" type="text/javascript" src="../js/jquery/calendar/jquery.ui.widget.js"></script>
        <script language="javascript" type="text/javascript" src="../js/jquery/calendar/jquery.ui.datepicker.js"></script>
        <script type="text/javascript" src="../js/jquery/alerts/jquery.alerts.js"></script>

    </head>

    <body>
         <p></p>
        <div id="loged"<%
        if(sessionUser.getAttribute("result") != null){%>
             style="display: block;"
             <%}else{%>
              <%}%>style="display: none;">
            <input type="text" class="fieldUser" readonly id="txtUser" value="<%=value%>"/><span>&nbsp; &nbsp; | &nbsp; &nbsp;</span>
            <input type="button" id="logoutUser" value="Cerrar Sesión" class="button_form" onclick="btnLogout_onclick()">
        </div>
        <p></p>
        <div id="form" class="form2">
            <center>
                <table>
                    <tr>
                        <td colspan="2"> <p></p></td>
                    </tr>
                    <tr>
                        <td colspan="2"><center> <p><label class="fieldTitle">Informaci&oacute;n ticket</label></p></center></td>
                    </tr>
                    <tr>
                        <td><label class="fieldtext">N&uacute;mero ticket: </label></td><td><input type="text" id="txtTicket" class="fieldtext"/></td>
                    </tr>
                    <tr>
                        <td colspan="2"><center><input id="btnSearch" type="button" value="Buscar" class="button_form" onclick="findTicket()" onkeypress="if(event.keyCode==13){findTicket();}"/></center></td>
                    </tr>
                </table>
            </center>
        </div>
    </body>
</html>
